package com.ktjy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ktjy.dto.BusinessDTO;
import com.ktjy.pojo.TbBusiness;

/**
 * <p>
 * 商机 服务类
 * </p>
 *
 * @author jjx
 * @since 2025-08-19
 */
public interface ITbBusinessService extends IService<TbBusiness> {
    /**
     * 根据条件分页查询商机列表
     * @param businessDTO
     * @param pageNo
     * @param pageSize
     * @return
     */
    public IPage<TbBusiness> findPage(BusinessDTO businessDTO, Integer pageNo, Integer pageSize);
    /**
     * 新增商机
     * @param tbBusiness
     * @return
     */
    public void saveBusiness(TbBusiness tbBusiness);
    /**
     * 分配商机
     * @param businessId
     * @param userId
     */
    public void assignBusiness(Long businessId, Long userId);
    /**
     * 退回公海
     * @param businessId
     * @param reason
     * @return
     */
    public void backBusiness(Long businessId, String reason);
    /**
     * 捞取商机
     * @param businessId
     * @param userId
     * @return
     */
    public void gainBusiness(Long businessId, Long userId);
    /**
     * 线索转商机
     * @param clueId
     */
    public void changeBusiness(Long clueId);
}
